package com.hst.web.sys.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hst.core.annotation.Comment;

/**
 * 
 * @author Adrian
 *
 */
@Entity
@Table(name="sys_privilege")
@Comment("系统权限表")
public class TPrivilege implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Comment("权限ID")
	@Id
	@Column(length=10)
	private String id;

	@Comment("父权限ID，一般对应菜单ID")
	@Column(length=10)
	private String pid;
	
	@Comment("权限名称")
	@Column(length=30)
	private String name;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
